package cn.javastudy.design._2_结构型模式._装饰器模式.装饰类;

import cn.javastudy.design._2_结构型模式._装饰器模式.被装饰的类.FastFood;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * 装饰者
 *
 * @author sumou
 * @date 2025/01/24
 */
@Getter
@Setter
public abstract class Garnish extends FastFood {

    /**
     * 快餐
     */
    private FastFood food;

    public Garnish(FastFood food, Double price, String desc) {
        super(price, desc);
        this.food = food;
    }

}
